package com.ruoyi.order.station.operate;

import com.github.s7connector.api.annotation.S7Variable;
import com.github.s7connector.impl.utils.S7Type;
import lombok.Data;

/**
 * 获取PLC物料码DB块
 */
@Data
public class DB5450 {
    //连接Ok
    @S7Variable(byteOffset=0, bitOffset=0, type= S7Type.WORD)
    public Integer connectedOk;
    //准备好
    @S7Variable(byteOffset=2, bitOffset=0, type= S7Type.WORD)
    public Integer ready;
    //请求Ipc
    @S7Variable(byteOffset=4, bitOffset=0, type= S7Type.WORD)
    public Integer request;


    //IPC回写PLC，连接Ok
    @S7Variable(byteOffset=10, bitOffset=0, type= S7Type.WORD)
    public Integer resConnectedOk;
    //IPC回写PLC， 准备好
    @S7Variable(byteOffset=12, bitOffset=0, type= S7Type.WORD)
    public Integer resReady;
    //IPC回写PLC， 完成
    @S7Variable(byteOffset=14, bitOffset=0, type= S7Type.WORD)
    public Integer done;
}
